package com.lvshi0797.cms.dto;

/*	
 * BUI返回的数据类型的结构
 * "rows" : [{},{}], //数据集合
 * "results" : 100, //记录总数
 * "hasError" : false, //是否存在错误
 * "error" : "" // 仅在 hasError : true 时使用
 * */
public class ResultType {
	
	private Object[] rows;
	private int results;
	
	private boolean hasError;
	private String error;
	public Object[] getRows() {
		return rows;
	}
	public void setRows(Object[] rows) {
		this.rows = rows;
	}
	public int getResults() {
		return results;
	}
	public void setResults(int results) {
		this.results = results;
	}
	public boolean isHasError() {
		return hasError;
	}
	public void setHasError(boolean hasError) {
		this.hasError = hasError;
	}
	public String getError() {
		return error;
	}
	public void setError(String error) {
		this.error = error;
	}
	public ResultType() {
		super();
		// TODO Auto-generated constructor stub
	}
	public ResultType(Object[] rows) {
		super();
		this.rows = rows;
		this.results = rows.length;
		this.hasError = false;
	}
	public ResultType(Object[] rows, int results) {
		super();
		this.rows = rows;
		this.results = results;
		this.hasError = false;
	}
 
 
 
	
	
	
}
